* {
    margin: 0;
    padding: 0;
}
 div {
    width: 50%;
    height: 300px;
    margin: 0 auto;
    float: left;
 }
div:nth-child(1){
    background-color: aqua;
}
div:nth-child(2) {
    background-color: red;
}